package example.telosys.injector.config;

import org.telosys.injector.Injector;
import org.telosys.injector.InjectorFactory;


public class Helper {

	public static Injector getInjector () {
		
		MyConfig module = new MyConfig();
		
		Injector injector = InjectorFactory.createInjector("test1", module);
		System.out.println("Injector " + injector.getName() + " is ready.");
		injector.printAllComponents(System.out); // void (dependencies not yet resolved)
		
		return injector ;
	}
}
